package com.lantosec.hmrp.modules.cms.mapper;

import com.lantosec.hmrp.modules.cms.entity.CmsArticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lantosec.hmrp.modules.cms.vo.CmsArticleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * CMS文章列表 Mapper 接口
 * </p>
 *
 * @author AutoCode
 * @since 2020-07-06
 */
public interface CmsArticleMapper extends BaseMapper<CmsArticle> {

    /**
     * 查询栏目下的文章列表
     * @param categoryId
     * @return
     */
    List<CmsArticleVO> getCmsArticles(@Param("categoryId") String categoryId, @Param("content") String content);
}
